Set

Function

This API is used to set Channel > Video Cover page parameters.

Request Message

See Channel > Video Cover > Parameter Description > Table 1 for parameter description.

Sample:

POST /API/ChannelConfig/VideoCover/Set HTTP/1.1
{
    "version": "1.0",
    "data": {"channel_info": {"CH1": {
        "privacy_zone_enable": true,
        "zone_info": [
            {
                "zone_no": 1,
                "zone_enable": true,
                "rect": {
                    "left": 227,
                    "top": 142,
                    "width": 83,
                    "height": 65
                }
            },
            {
                "zone_no": 2,
                "zone_enable": false,
                "rect": {
                    "left": 220,
                    "top": 100,
                    "width": 100,
                    "height": 100
                }
            },
            {
                "zone_no": 3,
                "zone_enable": false,
                "rect": {
                    "left": 380,
                    "top": 100,
                    "width": 100,
                    "height": 100
                }
            },
            {
                "zone_no": 4,
                "zone_enable": false,
                "rect": {
                    "left": 540,
                    "top": 100,
                    "width": 100,
                    "height": 100
                }
            },
            {
                "zone_no": 5,
                "zone_enable": false,
                "rect": {
                    "left": 60,
                    "top": 250,
                    "width": 100,
                    "height": 100
                }
            },
            {
                "zone_no": 6,
                "zone_enable": false,
                "rect": {
                    "left": 220,
                    "top": 250,
                    "width": 100,
                    "height": 100
                }
            }
        ],
        "chn_index": "CH1",
        "page": "chn_videoCover"
    }}}
}

Response Message

Sample:

HTTP/1.1 200 OK
Content-Type: application/json
{
	"result": "success",
	"data": {}
}

Error Code

See Response Messages Body and Common error_code for more information.